 |
 |
 |
 |
#150177 - 12/03/01 04:32 PM
[6.1x] Megamod 2.0
|
Moderator
Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
|
Title: Megamod 2.0 Final Tested on ubb: 6.1.0.4 Description: Makes a new status of a moderator to every board(like an administrator) without being listed, but no access to control panel(if not desired). Download: http://www.ubbdev.com/ubb/upload/00006378/megamod.zip Bug fixes since last version: v1.0-Inital release for 6.01 v1.5-Ported to 6.1 betas, fixing the posting bug v2.0-Final (Fixed demodding bug) ZIP includes: Multihack, patch for authority list, jimbo's custom status, and stars/status 6.0. and instructions on how to add megamods to control panel settings.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150186 - 01/05/02 04:11 PM
Re: [6.1x] Megamod 2.0
|
Junior Member
Registered: 08/02/01
Posts: 11
|
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by PeteB: I feel REALLY stupid, but I updated all the files as said in the install, and uploaded the additional files, but I can't find where I assign mega mods from. I looked all over the CP?
Also, what is the .mhx file in the ZIP?</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif"> Well the megamod menu should be in "Primary Settings" you may wanna run thru the code again cause maybe you missed something <img src="biggrin.gif" border="0" alt="" /> as for the .mhx file ,thats if you use the www.multihack.com to install your hacks.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150195 - 01/23/02 03:41 PM
Re: [6.1x] Megamod 2.0
|
Moderator
Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
|
Nope, i was wrong. It's in cp_lib.cgi under sub CheckPermission_CP.
Make sure you have this:
if (($profile[8] ne 'Administrator') && ($profile[8] ne 'Moderator') && ($profile[8] ne 'MegaModerator')) { print qq%Content-type: text/htmlnn%; &AppendAdminLog($username, $status, "Log In", "Failed", "User is NOT an Admin or Mod"); &StandardHTML("Sorry, you are not an administrator or moderator, so you may not gain access to the control panel."); }
Under this:
if ($public_name eq "") { $public_name = $profile[0]; }
and above this:
#return status &AppendAdminLog($username, $status, "Log In", "Succeeded", "User is a $profile[8]");
Again, this won't work on versions in the 6.0.x series.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150210 - 02/10/02 02:01 PM
Re: [6.1x] Megamod 2.0
|
Moderator
Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150212 - 02/23/02 01:21 AM
Re: [6.1x] Megamod 2.0
|
Junior Member
Registered: 08/24/01
Posts: 8
|
Sorry m8es, but the URL http://www.ivegeta.com/h acks/ is down. Bandwidth Limit Exceeded The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later. Please can me eMail someone this hack to locutus@planet-borg.de Thanx a lot Locutus
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150223 - 03/10/02 06:21 AM
Re: [6.1x] Megamod 2.0
|
Junior Member
Registered: 08/24/01
Posts: 8
|
You can name me mad, but I tried to patch the UBB 6.2.1 with the Mega-Moderator-Hack. I found everything and patched it. Besides only one thing </font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Open ubb_lib.cgi Find: sub is_admin_or_mod { local ($f, @profile, $Moderator, @mods, $mod_name, $mod_num, $mod_match, $is_one, @mod_profile); </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">I can´t find. But I found this part which should be the right one. How must it be patched? </font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">sub is_admin_or_mod { my ($Moderator, $mod_match, $is_one); my ($f, @profile) = @_; chomp($profile[8]); chomp($profile[0]); if ($profile[8] eq 'Administrator') { $is_one = 'true'; } elsif ($profile[8] eq 'Moderator') { if ($f ne 'ALL') { # check to see if user is moderator of particular forum # check if moderator &RequireVars("$vars_config{VariablesPath}/vars_mods.cgi"); $Moderator = ${ "Forum" . "$f" . "Moderator" }; #split up Mod var my @mods = split (/||^||/, $Moderator); my @mod_profile = (); foreach (@mods) { chomp($_); if (-s "$vars_config{MembersPath}/$_.cgi") { @mod_profile = &OpenProfile($_); chomp($mod_profile[0]); if ($mod_profile[0] eq $profile[0]) { $mod_match = 'true'; } # end if } # end if } # end foreach if ($mod_match ne 'true') { $is_one = 'false'; } else { $is_one = 'true'; } # end if } else { # this is just to see if user is a mod of any forum $is_one = 'true'; } # end if } else { $is_one = 'false'; } # end if return ($is_one); } # is_admin_or_mod</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">Thanx a lot Locutus of Borg
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|